#ifndef COMMAND_H
#define COMMAND_H
#include <my_header.h>
#include "login.h"

//接收客户端发送的命令和路径参数
typedef struct{
    int command;
    char path[1024];
}command_t;

//处理工作
void handling(command_t *ct, int netFD, MYSQL *conn, client_t *cl);
//1、cd
void command_cd(command_t *ct, int netFD, MYSQL *conn, client_t *cl);
//2、ls
void command_ls(int netFD, MYSQL *conn, client_t *cl);
//3、pwd
void command_pwd(int netFD, MYSQL *conn, client_t *cl);
//4、rm
void command_rm(command_t *ct, int netFD, MYSQL *conn, client_t *cl);
//5、puts
void command_user_puts(command_t *ct, int netFD, MYSQL *conn, client_t *cl);
//6、gets
void command_user_gets(command_t *ct, int netFD, MYSQL *conn, client_t *cl);
//7、mkdir
void command_mkdir(command_t *ct, int netFD, MYSQL *conn, client_t *cl);
//8、exit
void command_exit(int netFD);
#endif
